#include "oslib/wimp.h"
#include "oslib/toolbox.h"



typedef union toolbox_event_data             toolbox_event_data;

//typedef union wimp_and_event_block           wimp_and_event_block;
typedef union tbox_event                     tbox_event;
typedef struct wimp_toolbox_event            wimp_toolbox_event;
typedef struct save_as_save_completed        save_as_save_completed;
/////////typedef struct generic_obj_about_to_be_shown generic_obj_about_to_be_shown;
/////////typedef struct toolbox_colourmenu            toolbox_colourmenu ;
///////typedef struct toolbox_popup_event           toolbox_popup_event ;
//////typedef struct toolbox_obj_auto_created      toolbox_obj_auto_created ;
typedef struct toolbox_adjuster_clicked      toolbox_adjuster_clicked;

struct save_as_save_completed
   {
     bits  action;
     char  filename [208];
   };

#ifdef NEVER
struct generic_obj_about_to_be_shown
   {
     int    show_type;
     toolbox_position position;
   };


struct toolbox_colourmenu
    {
      wimp_colour colour ;
    } ;

struct toolbox_popup_event
{
  toolbox_c popup_id ;
} ;

struct toolbox_obj_auto_created
{
  char name [212] ;
} ;
#endif

struct toolbox_adjuster_clicked
{
  osbool up;
};

struct wimp_toolbox_event
   {
      int block_size;
      int ref_number;
      bits event_no;
      bits flags;
      union
      {
        save_as_save_completed save_completed;
///////        generic_obj_about_to_be_shown show_block;
//////        toolbox_colourmenu colourmenu ;
///////        toolbox_popup_event popup ;
///////        toolbox_obj_auto_created template_name ;
        toolbox_adjuster_clicked adjuster;
      }
      data;
   };

union tbox_event
  {  wimp_toolbox_event event;
     byte reserved [256];
  };


